package com.example.administrator.appstpremvpdemo.view.fragment;

import android.view.View;

import com.example.administrator.appstpremvpdemo.contract.SearchHeadContract;
import com.example.administrator.appstpremvpdemo.presenter.SearchHeadPresenter;

/**
 * @Author Administrator
 * @Date 2017/12/23
 * @description
 * @function 顶部搜索头的fragment
 */

public class SearchHeadFragment extends BaseFragment implements SearchHeadContract.View{

    private View mView;

    public void setSearchHeadView(View view) {
        this.mView = view;
        onShow();
    }

    @Override
    public void onSearchWorldChanged(String words) {

    }

    @Override
    public void onPageShow() {
        super.onPageShow();
        //onShow();
    }

    @Override
    public void onPageHide() {
        super.onPageHide();
    }

    private void onShow() {
        SearchHeadPresenter.getInstance().setReciverView(this);
    }
}
